package user

import "context"

const (
	AppName = "users"
)

type Service interface {
	//创建用户
	CreateUser(context.Context, *CreateUserRequest) (*User, error)
	//登录
	Login(context.Context, *LoginUserRequest) (*Token, error)
	//token校验
	ValidateToken(context.Context, *ValidateToken) (*Token, error)
	//单个查询
	DescribeUser(context.Context, *DescibeUserRequest) (*User, error)
}
